package com.epoch.controller;

import com.epoch.entity.Type;
import com.epoch.service.TypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author admin
 */
@Slf4j
@RestController
public class TypeController {
    @Autowired
    private TypeService typeService;

    @GetMapping("type")
    public Type getTypeById(String typeId){
        return typeService.getTypeById(typeId);
    }
}
